# Name of the target
set(CMAKE_SYSTEM_NAME Generic)
set(CMAKE_SYSTEM_PROCESSOR cortex-m0)

set(THREADX_ARCH "cortex_m0")
set(THREADX_TOOLCHAIN "gnu")

set(MCPU_FLAGS "-mthumb -mcpu=cortex-m0")
set(SPEC_FLAGS "--specs=nosys.specs")

set(C_DEFS "-DUSE_HAL_DRIVER -DSTM32G030xx")
set(LD_FLAGS " -T${LDSCRIPT}")

include(arm-none-eabi.cmake)
